package chatserver.tools;


public class Util {

    public static int saveIntegerValueOf(String text, int def) {
        int ret;

        try {
            ret = Integer.valueOf(text);
        } catch (Exception e) {
            ret = def;
        }

        return ret;
    }
}
